package com.hgnu.dorm.mapper;

import com.hgnu.dorm.domain.dto.BuildingPageQueryDto;
import com.hgnu.dorm.domain.po.Building;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BuildingMapper {
    //根据条件查询总共有多少个楼宇
    Long count(BuildingPageQueryDto dto);

    //根据条件查询用户列表
    List<Building> page(BuildingPageQueryDto dto);

    //新增楼宇
    void insertBuilding(Building building);

    //修改楼宇信息
    void updateBuilding(Building building);

    //删除楼宇
    void deleteBuildingByIds(Long[] ids);
    //通过id查询
    Building getById(Integer id);
}
